<script>
import ProgressChart from "@/pages/report/componet/chartCom/progress-chart.vue";
export default {
  name: "ten-zxl",
  components: {
    ProgressChart
  },

  data(){


    return {
      value:0,

    }
  },

  mounted() {
    this.updateData();
  },

  methods:{

    updateData() {
      // this.value = data
      // console.log("1111")
      setTimeout( ()=> {
        this.value = (Math.random() * 100).toFixed(2) - 0;
        this.$refs.prods.refreshOptions()
      }, 200)

    }
  }


}
</script>

<template>
  <view class="line-box">
    <text>执行率</text>
    <progress-chart
        ref='prods'
        :value="value"
        @finished="updateData"
    />
  </view>
</template>

<style scoped lang="scss">

</style>